Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema: Annotations to oneOf and add oneOfEnumSelectorField #376

Merged
2 commits merged into from
Nov 4, 2021

Conversation

ghost
Copy link

@ghost ghost commented Nov 2, 2021

openownership/lib-cove-bods#64

Overview

What does this pull request do?

Changes part of schema to be technically correct and add a hint field so we get better validation messages

How can a reviewer test or examine your changes?

No changes to data model. To see changes in validation messages:

Who is best placed to review it?

Already discussed with @rhiaro and @kd-ods

Relates to issue: openownership/lib-cove-bods#64

Translations

Documentation & Release

@ghost ghost force-pushed the 64-annotations-oneOf branch 7 times, most recently from be36f4a to 03cac59 Compare November 2, 2021 15:11
@ghost ghost requested a review from rhiaro November 2, 2021 15:22
We want to make more changes to it soon, and
we may as well not be dependent on a external repository
@ghost ghost force-pushed the 64-annotations-oneOf branch from 03cac59 to 0b2c131 Compare November 4, 2021 15:48
Copy link
Collaborator

@rhiaro rhiaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changelog formating pedantry changes, otherwise fine.

Note: I opened #379 to track eventually replacing this with a different way of passing the information to the validator.

docs/schema/changelog.rst Outdated Show resolved Hide resolved
docs/schema/changelog.rst Outdated Show resolved Hide resolved
tests/bods_validate.py Outdated Show resolved Hide resolved
openownership/lib-cove-bods#64

This involves changes to build_schemas_for_testing that are required by
the change from anyOf to oneOf.
But actually, this code should have been required before but the compile
tool was not processing anyOf properly.
OpenDataServices/compile-to-json-schema#28

#376
@ghost ghost force-pushed the 64-annotations-oneOf branch from 0b2c131 to a7bbdde Compare November 4, 2021 16:41
@ghost ghost requested a review from rhiaro November 4, 2021 16:45
@ghost ghost merged commit 9fd3a49 into master Nov 4, 2021
@ghost ghost deleted the 64-annotations-oneOf branch November 4, 2021 16:54
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants